<?php
namespace App\Models;

use CodeIgniter\Model;

class SelectionModel extends Model
{
    protected $table      = 'selections';
    protected $primaryKey = 'id';
    protected $useAutoIncrement = true;
    
    protected $returnType     = 'array';
    protected $allowedFields = [
        'class_name',          // 新增班级字段
        'student_name',   // 新增学生姓名字段
        'first_choice', 
        'second_choice', 
        'third_choice'
    ];
    protected $useTimestamps = true;
    
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}